#include "ObjMgr.h"
#include "RoleMgr.h"
#include "MagicEx.h"
#include <Windows.h>
#include <iostream>

using namespace std;

int main()
{
	MgrInit();

	IRole* pUser1 = RoleManager()->CreateNewRole(1);
	IRole* pUser2 = RoleManager()->CreateNewRole(2);

	assert(pUser1 && pUser2);

	pUser1->Init();
	pUser2->Init();

	for (int i = 0; ; i++)
	{
		if (i%1000 == 0)
		{
			pUser1->MagicAttack(1, 2);
		}

		RoleManager()->OnTimer();
		Sleep(10);
	}

	return 0;
}